<?php

class Basic_autor_to {
	
	private $login;
	private $password;
	
	public function __construct($login, $password) {
		$this->login = $login;
		$this->password = $password;
	}
	
	public function get_login() {
		return $this->login;
	}
	
	public function get_password() {
		return $this->password;
	}
	
	public function equals($object) {
		if ((get_class($this) != get_class($object)) ||
				($object == null))				
			 return false;
		else {
			if (($this->login == $object->get_login()) &&
				($this->password = $object->get_password()))
				return true;
			return false;
		}
	}
	
	public function to_string() {
		return 'login: ' . $this->login . ' | ' . 
				'password: XXXXXXXXXX';
	}
}

?>